/*
 * @Author: Mainul Islam
 */

package edu.uta.cse.randomgraph.graph.property;

import java.util.Random;

public class Edge {
	
	public int u, v;
	
	public Edge(int x, int y) {
		if(x < y) {
			u = x;
			v = y;
		}
		else {
			u = y;
			v = x;
		}
	}
	
	public int getOneRandomEndPoint() {
		Random rand = new Random();
		int ind = rand.nextInt(2);
		if(ind == 0)
			return u;
		return v;
	}

}
